package com.yx.sql.convert;

import com.yx.sql.entity.DbConnect;
import com.yx.sql.entity.vo.DbConnectVo;

/**
 * TODO 类作用描述
 *
 * @author sbl
 * @date 2024/11/4
 */
public class DbConnectConverter {

    public static DbConnectVo convertToVo(DbConnect dbConnect) {
        if (dbConnect == null) {
            return null;
        }

        DbConnectVo dbConnectVo = new DbConnectVo();
        dbConnectVo.setId(dbConnect.getId());
        dbConnectVo.setConnName(dbConnect.getConnName());
        dbConnectVo.setConnUrl(dbConnect.getConnUrl());
        return dbConnectVo;
    }
}
